//*************************************************************
//  Age.java   Java  Foundations
//
//  Demonstrates the use of an of statement.
//*************************************************************

import java.util.Scanner;
public class Age
{
  public static void main (String[] args)
     {
       final int MINOR = 21;
       Scanner scan = new Scanner (System.in);
      
       System.out.println ("Enter your name: ");
       int age = scan.nextInt();
   
       System.out.println ("You entered: " + age);
       if (age < MINOR)
          System.out.println ("Younth is a Wonerful thing.Enjoy.");
         
          System.out.println ("Age is a state of mind.");
     }
}
